package cn.shenshen.shop.service;

import cn.shenshen.shop.domain.SeckillOrder;

/**
 * 秒杀订单接口
 */
public interface ISeckillOrderService {

    /**
     * 根据用户id,商品id查询秒杀订单
     * @param userId
     * @param goodId
     * @return
     */
    SeckillOrder find(Long userId, Long goodId);

    /**
     * 创建秒杀订单
     * @param userId
     * @param goodId
     * @param orderNo
     */
    void createSeckillOrder(Long userId, Long goodId, String orderNo);
}
